@use 'variables.module.scss' as *;
@use 'mixin' as *;
@use 'transition.scss' as *;
@use 'element-ui'as *;
@use 'sidebar.scss'as *;
@use 'btn.scss'as *;
@use 'main.scss'as *;
@use "global-class" as *;


body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0 !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式----确保根据不同设置铺满页面----------
.app-container {
  padding: 15px 20px;
  background-color: rgb(243, 245, 248);
  min-height: calc(100vh - #{$navbar-height});
  display: flex;
  flex-direction: column;

  .filter-search {
    background: #ffffff;
    margin-bottom: 15px;
    padding: 23px 5px 4px;
    border-radius: 5px;

    .top-box {
      width: 100%;
      padding-left: 20px;
      background-color: #fff;

      .header-info {
        height: 60px;
        padding-top: 5px;
        display: flex;
        justify-content: space-between;

        .btn-box {
          margin-right: 20px;
        }
      }
    }
  }

  .header-box {
    background: #ffffff;
    margin-bottom: 20px;
    padding: 25px 20px 25px 25px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .header-title {
      font-size: 21px;
    }

    .btn-box {
      margin-right: 10px;
    }
  }

  .content-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 5px;
    flex: 1;
    display: flex;
    flex-direction: column;

    .edit-form {
      padding: 20px 10px;
    }

    .el-scrollbar__wrap {
      overflow-x: hidden;
    }
  }
}

.fixed-header + .app-main .app-container {
  min-height: 100vh;
}

.hasTagsView .app-main .app-container {
  min-height: calc(100vh - #{$navbar-height} - #{$tags-view-height});
}

//----------------------------------------------

.flex-container {
  display: flex;
  padding: 20px;
  background-color: rgb(243, 245, 248);
  height: calc(100vh - 5.25rem);

  .el-scrollbar__wrap {
    overflow-x: hidden;
  }

  &-left {
    width: 20%;
    background: #ffffff;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;

    &-title {
      font-size: 22px;
      color: #73767a;
      font-weight: 700;
    }

    &-filter {
      display: flex;
      align-items: center;
      margin: 30px 0;
    }

    .el-tree-node {
      &.is-current {
        > .el-tree-node__content:first-child {
          color: #1990ff;
        }
      }

      .el-tree-node__content {
        height: 42px;
      }
    }

    .select-list {
      flex: 1;
      overflow: auto;

      &-item {
        padding: 10px 16px;
        margin-bottom: 10px;
        font-size: 15px;
        color: #606266;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        cursor: pointer;
        border-radius: 2px;

        .icon {
          margin-right: 10px;
          font-size: 16px;
        }

        &.active {
          //background-color: #5890F7;
          //color: #ffffff;
          background-color: #f5f7fa;
          color: #1990ff;
        }

        &:hover {
          background-color: #f5f7fa;

          &.active {
            //background-color: #5890F7;
            //color: #ffffff;
            color: #1990ff;
          }
        }
      }

      .loading {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #aaa;
      }

      .nomore {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #aaa;
        margin-top: 60px;
        font-size: 14px;
      }

      .nodata {
        display: flex;
        justify-content: center;
        align-items: center;
        color: #b1b1b1;
        margin-top: 120px;
      }
    }
  }

  &-right {
    flex: 1;
    margin-left: 20px;
    display: flex;
    flex-direction: column;

    .filter-search {
      background: #ffffff;
      margin-bottom: 20px;
      padding: 20px 5px 0;
      border-radius: 5px;
    }

    .content-box {
      background: #ffffff;
      padding: 20px 20px 0;
      border-radius: 5px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
  }
}

.components-container {
  margin: 30px 50px;
  position: relative;
}


.table-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;

  &.no-radius {
    border-radius: 0;
  }

  &.round {
    border-radius: 50%;
  }
}


.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}
